#!/bin/sh

if [ -n "`%OPTWARE_TARGET_PREFIX%/bin/pidof miau`" ]; then 
    %OPTWARE_TARGET_PREFIX%/bin/killall miau 2>/dev/null
fi

if [ ! -d %OPTWARE_TARGET_PREFIX%/var/spool/miau ] ;  then
    mkdir -p %OPTWARE_TARGET_PREFIX%/var/spool/miau
fi

%OPTWARE_TARGET_PREFIX%/bin/miau -d %OPTWARE_TARGET_PREFIX%/var/spool/miau

